package pattern.decorator.cake.v1;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class PancakeWithEggAndSausage extends PancakeWithEgg{
    @Override
    protected String getMsg() {
        return super.getMsg() + "+1根香肠";
    }

    @Override
    //加一个香肠加2块钱
    public int getPrice() {
        return super.getPrice() + 2;
    }
}
